package com.wade.demo.springbootnutz.domain.entity;

import java.io.Serializable;

import javax.validation.constraints.Size;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Table;

import lombok.Data;

/**
 *
 * @company: creekspring
 * @author wdChen
 * @date:2017-09-15 13:56:15
 * @Description:
 */
@Data
@Table("gateway")
public class Gateway implements Serializable {
  private static final long serialVersionUID = 1L;

  /**
   * 网关名称
   */
  @Column("name")
  @Size(max = 32)
  private String name;

  /**
   * 网关国际移动设备识别码
   */
  @Column("imei")
  @Size(max = 32)
  private String imei;

  /**
   * 网关所属项目id
   */
  @Column("project_id")
  private Integer projectId;

  /**
   * 是否被停用 0-停用 1-启用
   */
  @Column("disabled")
  private Integer disabled;

  /**
   * 频段
   */
  @Column("freq")
  private Integer freq;

  @Column("remark")
  private String remark;

  /**
   * 创建时间
   */
  @Column("created_at")
  private Long createdAt;

  /**
   * 创建人
   */
  @Column("created_by")
  @Size(max = 32)
  private String createdBy;

  /**
   * 更新时间
   */
  @Column("updated_at")
  private Long updatedAt;

  /**
   * 更新人
   */
  @Column("updated_by")
  @Size(max = 32)
  private String updatedBy;

  /**
   * 删除时间
   */
  @Column("deleted_at")
  private Long deletedAt;

  /**
   * 删除人
   */
  @Column("deleted_by")
  @Size(max = 32)
  private String deletedBy;

  public static class Field {
    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String IMEI = "imei";

    public static final String PROJECT_ID = "projectId";

    public static final String DISABLED = "disabled";

    public static final String FREQ = "freq";

    public static final String REMARK = "remark";

    public static final String CREATED_AT = "createdAt";

    public static final String CREATED_BY = "createdBy";

    public static final String UPDATED_AT = "updatedAt";

    public static final String UPDATED_BY = "updatedBy";

    public static final String DELETED_AT = "deletedAt";

    public static final String DELETED_BY = "deletedBy";

    private Field() {}
  }
}
